package com.lu.sb210219.controller;


import com.lu.sb210219.exception.ApiException;
import com.lu.sb210219.enums.ApiResultCodeEnum;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api")
public class Test {

    @GetMapping("exception")
    public Object test() {

        throw new ApiException(ApiResultCodeEnum.ERROR);
    }

}
